/**
 * Created by JetBrains WebStorm.
 * User: matao01
 * Date: 11-9-12
 * Time: 下午10:05
 * To change this template use File | Settings | File Templates.
 */

(function(){
    var Panel = window.Panel || {};
    Panel.Utils = {
        $: function (id){
            return document.getElementById(id) || null;
        },

        addEvent: function (ele, etype, fn){
            try{
                ele.addEventListener(etype, fn, false);
            }
            catch (e){
                ele.attachEvent('on'+etype, fn);
            }
        }
        
    }
})();
